\documentclass[a4paper,10pt,twoside]{article}
\author{Floris van Nee\and{}Maarten Meijer}
\title{Knowledge-based Control Systems - Matlab Assignment}

\usepackage[english]{babel}
\usepackage[top=3cm, bottom=3cm, left=3cm, right=3cm]{geometry}
\usepackage{enumitem}
\usepackage[pdftex]{graphicx}
\usepackage[numbers]{natbib}
\usepackage{subfig}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pdfpages}
\usepackage{lscape}
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\usepackage{minibox}
\usepackage{booktabs}
\usepackage{tabulary}
\usepackage{listings}

\usepackage{courier}
 \lstset{
         basicstyle=\footnotesize\ttfamily, % Standardschrift
         numbers=left,               % Ort der Zeilennummern
         numberstyle=\tiny,          % Stil der Zeilennummern
         stepnumber=5,               % Abstand zwischen den Zeilennummern
         numbersep=5pt,              % Abstand der Nummern zum Text
         tabsize=2,                  % Groesse von Tabs
         extendedchars=true,         %
         breaklines=true,            % Zeilen werden Umgebrochen
         keywordstyle=\color{red},
				breakatwhitespace=true
    		frame=b,         
 %        keywordstyle=[1]\textbf,    % Stil der Keywords
 %        keywordstyle=[2]\textbf,    %
 %        keywordstyle=[3]\textbf,    %
 %        keywordstyle=[4]\textbf,   \sqrt{\sqrt{}} %
         stringstyle=\color{white}\ttfamily, % Farbe der String
         showspaces=false,           % Leerzeichen anzeigen ?
         showtabs=false,             % Tabs anzeigen ?
         xleftmargin=17pt,
         framexleftmargin=17pt,
         framexrightmargin=5pt,
         framexbottommargin=4pt,
         %backgroundcolor=\color{lightgray},
         showstringspaces=false      % Leerzeichen in Strings anzeigen ?        
 }

\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}


\fancyhf{}
\lhead{Embedded Systems Laboratory}
%\chead{Design of Digital Systems}
\rhead{\leftmark}

\rfoot[\thepage]{\thepage}

\usepackage[pdftex]{hyperref}
	\hypersetup{colorlinks=true}
	\hypersetup{linkcolor=black}
	\hypersetup{citecolor=black}
	\hypersetup{urlcolor=black}
	\hypersetup{bookmarksnumbered=true}
	\hypersetup{bookmarksopen=true}
\usepackage{makeidx}
	\makeindex
 	
\renewcommand*\familydefault{\sfdefault}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\selectlanguage{english}
 
\begin{document}
	\thispagestyle{empty}
	
	\includepdf{images/front.pdf}
	\clearpage

	\setcounter{tocdepth}{2}
	\tableofcontents
	\clearpage
	
	\input{Introduction}
	\clearpage
	
	\input{RequirementsArchitecture}
	\clearpage
		
	\input{DSE}
	\clearpage
	
	\input{VHDL}
	\clearpage
	
	\input{Controller}
	\clearpage
	
	\input{Communication}
	\clearpage
	
	\input{WebcamReadout}
	\clearpage
	
	\input{ObjectTracking}
	\clearpage

	\input{SystemIntegrationTesting}
	\clearpage
	
	\input{ConclusionsRecommendations}
	\clearpage
	
	\input{Appendix}
	\clearpage
	
%	\input{appendix}
%	\clearpage
	
	% Bibliography starts here
	% Generate bibliography
	\phantomsection
	\addcontentsline{toc}{section}{References}
	%\bibliographystyle{unsrtnat}
	\bibliographystyle{ieeetr}
	\bibliography{bibliography}
	
\end{document}
